package cn.lzd.mr.mroverride.distributedCache;

import org.apache.commons.lang.StringUtils;

/**
 * Created by lzd on 2018/12/13.
 */
public class StrUtil {

    public static boolean isBlank(String str) {
        return StringUtils.isBlank(str) || ("\\N".equals(str));
    }

    static final String BASE_CONST = "sx,tj,cq,tw,hlj,ln,hub,nmg,hun,heb,hen,nx,fj,gd,gj,xj,gs,gx,gz,xz,snx,hk,yn,qh,zj,ah,han,jl,js,sc,sd,jx,sh,bj";

    public static boolean checkBase(String base) {
        return isBlank(base) || (BASE_CONST.indexOf(base) != -1);
    }
}
